package com.bank6677.sync.csm.domain.old;

public class AdminRule {
    private Integer id;
    private Integer adminId;
    private Integer ruleId;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getAdminId() {
        return adminId;
    }
    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }
    public Integer getRuleId() {
        return ruleId;
    }
    public void setRuleId(Integer ruleId) {
        this.ruleId = ruleId;
    }
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof AdminRule)) {
            return false;
        }
        AdminRule other = (AdminRule) that;
        return this.getId() == null ? other == null : this.getId().equals(other.getId())
            && this.getAdminId() == null ? other == null : this.getAdminId().equals(other.getAdminId())
            && this.getRuleId() == null ? other == null : this.getRuleId().equals(other.getRuleId());
    }
    @Override
    public int hashCode() {
        int hash = 23;
        if (getId() != null) {
            hash *= getId().hashCode();
        }
        if (getAdminId() != null) {
            hash *= getAdminId().hashCode();
        }
        if (getRuleId() != null) {
            hash *= getRuleId().hashCode();
        }
        return hash;
    }
}